//@ts-ignore
import SparkMD5 from 'spark-md5';

onmessage = async (e) => {
    const {results} = e.data;
    let spark = new SparkMD5;
    results.forEach((item) => {
        spark.append(item)
    })
    const fileMd5 = spark.end();
    postMessage(fileMd5)
}